home *** CD-ROM | disk | FTP | other *** search
- function Moveitem(num)
- {
- _root["item" + num].targetPlay(30);
- if(num != _root.menucheck)
- {
- _root["item" + _root.menucheck].gotoAndStop(30);
- _root["item" + _root.menucheck].targetPlay(35);
- }
- i = 1;
- while(i <= 5)
- {
- if(i == num)
- {
- _root["item" + i].line.gotoAndPlay(2);
- }
- else
- {
- _root["item" + i].line.gotoAndStop(1);
- }
- i++;
- }
- _root.menucheck = num;
- }
- function menuSelect(num, sub)
- {
- switch(num)
- {
- case 1:
- menu = "overview";
- break;
- case 2:
- menu = "history";
- break;
- case 3:
- menu = "ceo";
- break;
- case 4:
- menu = "financial";
- break;
- case 5:
- menu = "global";
- }
- if(menu == _level0.check_NcMenu)
- {
- _level300.gotoAndPlay("start");
- }
- else
- {
- loadCommandEX(menu);
- }
- if(num == 5)
- {
- _level0.startMovie = sub;
- }
- _level0.check_NcMenu = menu;
- }
- i = 1;
- while(i <= 5)
- {
- _root["item" + i].firstY = _root["item" + i]._y;
- _root["item" + i].box.i = i;
- _root["item" + i].i = i;
- _root["item" + i].box.onRollOver = function()
- {
- };
- _root["item" + i].box.onRollOut = function()
- {
- };
- _root["item" + i].box.onRelease = function()
- {
- _root.Moveitem(this.i);
- if(this.i != 5)
- {
- _root.menuSelect(this.i);
- }
- };
- i++;
- }
-